/* 弹出界面样式 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  width: 400px;
  padding: 16px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 18px;
  color: #4285F4;
  margin-bottom: 16px;
  text-align: center;
}

h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.current-domain {
  background-color: #f0f7ff;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  border-left: 4px solid #4285F4;
}

#current-domain {
  font-weight: bold;
}

.domain-config {
  margin-bottom: 20px;
}

.selector-item {
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  position: relative;
}

.form-group {
  margin-bottom: 8px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #555;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #4285F4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.btn {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  background-color: #f0f0f0;
  color: #333;
  transition: all 0.2s;
}

.btn:hover {
  background-color: #e0e0e0;
}

.btn.primary {
  background-color: #4285F4;
  color: white;
}

.btn.primary:hover {
  background-color: #3367d6;
}

.btn.danger {
  background-color: #f44336;
  color: white;
}

.btn.danger:hover {
  background-color: #d32f2f;
}

.remove-selector {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  font-size: 12px;
  background-color: #f44336;
  color: white;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.actions button {
  flex: 1;
  margin: 0 4px;
}

.domain-list {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

#domain-list {
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
}

#domain-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

#domain-list li:hover {
  background-color: #f0f7ff;
}

#add-selector {
  width: 100%;
  margin-top: 8px;
  background-color: #4CAF50;
  color: white;
}

#add-selector:hover {
  background-color: #388E3C;
}